<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pGrid.jsp" %>
<title>项目管理(新)</title>
<script>
	$(function(){
		var createrId = '${SESSION_USER.user.id}';
		var gridParam = {
			url:"/console/com.fs.jzzn.pojo.NewProject/list",
			queryParams: {
				createrId: createrId,
				createrId_searchType: 'eq'
			},
			columns : [[ 
			     {field: 'pNo', title: '项目编号', width: 150} 
		    	,{field: 'pName', title: '项目名称', width: 250}
		    	,{field: 'region', title: '所属区域', width: 120}
		    	,{field: 'createTime', title: '创建时间', width: 150}
			]]
		};
		p.dataGrid = $(p.dataGrid).datagrid( $.extend({}, p.dataGridParam,gridParam));
		/*事件响应*/
		$("#toolbar .easyui-linkbutton").on("click", function() {
			var motion_code = $(this).attr("motion_code");p.btnOneClick($(this));
			switch (motion_code) {
				case "05":
					p.gridQuery();
					break;
				default:
					break;
				}
		});
	});
	/*窗口确认回调方法*/
	function choose(){
		return p.dataGrid.datagrid('getSelections');
	}
</script>
</head>
<body class="easyui-layout">
	<!-- 但行高度33px，多行时 33乘以行数  -->
	<div data-options="region:'north',split:false,border:false" style="height:33px;">
		<div class="easyui-panel" data-options="fit:true,border:false">
			<!-- 查询条件表单，根据配置进行替换  -->
			<form id="queryForm" >
			 <input type="hidden" name="className" value="com.fs.jzzn.pojo.NewProject" />
			 <div style="margin-top:5px;margin-left:10px;float:left;">
			  <input class="easyui-textbox" name="pNo" style="width:240px;" data-options="label:'项目编号:',required:false" />
			<input type="hidden" name="pNo_searchType" value="like" />
			 </div>
			 <div style="margin-top:5px;margin-left:10px;float:left;">
			  <input class="easyui-textbox" name="pName" style="width:240px;" data-options="label:'项目名称:',required:false" />
			<input type="hidden" name="pName_searchType" value="like" />
			 </div>
			</form>
		</div>
	</div>  

	<!-- 工具栏按钮 -->
	<div id="toolbar" class="easyui-panel" style="padding:3px;"></div>
	
	<!-- 表格 -->
	<div region="center" border="false">
		<table id="dataGrid"></table>
	</div>
</body>
</html>